Skip to content

prepare-device: implement reference prepare-device hook#111

Open
tonyespy wants to merge 1 commit intocanonical:20from
tonyespy:add-prepare-device-hook
Open

prepare-device: implement reference prepare-device hook#111
tonyespy wants to merge 1 commit intocanonical:20from
tonyespy:add-prepare-device-hook

Conversation

@tonyespy
Copy link
Copy Markdown

Snapcraft.io points to this as the "reference" implementation of the amd64 gadget. However, no prepare-device hook makes this an incomplete reference, especially for private store operators

The proposed prepare-device hook would not change the behavior of the default PC gadget. However, it could then be forked and trivially modified to use for private store authentication.

This PR is just a backport of the reference hook added to the 22 and 24 branches.

Fixes: canonical#110

Signed-off-by: Tony Espy <espy@jam-arm64.localdomain>
@tonyespy tonyespy force-pushed the add-prepare-device-hook branch from c5b1b37 to eea8bea Compare February 14, 2024 14:40
@alfonsosanchezbeato
Copy link
Copy Markdown
Member

Tbh I'm a bit reluctant to backport this sort of changes, as this is just for reference and it is in the more modern gadgets. And new projects should be based on those, not on 20.

Copy link
Copy Markdown
Contributor

@xnox xnox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given how confusing all of this is, I'd rather have this here, than not.

@xnox
Copy link
Copy Markdown
Contributor

xnox commented Mar 25, 2024

also can we just make MODEL_APIKEY somehow snapctl set'able? such that verbantim pc gadget can just be used with serial vaults without need to maintain a forked gadged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants